package top.ranzhang.service.impl;

import top.ranzhang.bean.entity.HomeworkGrades;
import top.ranzhang.mapper.HomeworkGradesMapper;
import top.ranzhang.service.IHomeworkGradesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ran
 * @since 2025-06-05
 */
@Service
public class HomeworkGradesServiceImpl extends ServiceImpl<HomeworkGradesMapper, HomeworkGrades> implements IHomeworkGradesService {

    @Override
    public Object getAll() {
        return list();
    }

    @Override
    public void update(HomeworkGrades homeworkGrade) {
        updateById(homeworkGrade);
    }

    @Override
    public void delete(Long id) {
        removeById(id);
    }
}
